#[repr(C)]pub struct SessionProperty {
pub key: *const c_char,
pub value: *const c_char,
}Expand description
One session property, as the generated entry emits it: two NUL-terminated
strings in .rodata. #[repr(C)] so the C table
(nros_cpp_session_property_t) is this struct.
Fields§
§key: *const c_charThe backend’s property name (listen, connect, mode, …).
value: *const c_charIts value.
Implementations§
Trait Implementations§
Source§impl Clone for SessionProperty
impl Clone for SessionProperty
Source§fn clone(&self) -> SessionProperty
fn clone(&self) -> SessionProperty
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SessionProperty
Source§impl Debug for SessionProperty
impl Debug for SessionProperty
impl Send for SessionProperty
impl Sync for SessionProperty
Auto Trait Implementations§
impl Freeze for SessionProperty
impl RefUnwindSafe for SessionProperty
impl Unpin for SessionProperty
impl UnsafeUnpin for SessionProperty
impl UnwindSafe for SessionProperty
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more