pub struct Null { /* private fields */ }Expand description
The null profile
Trait Implementations§
Source§impl Profile for Null
impl Profile for Null
Source§type InterfaceIdent = ()
type InterfaceIdent = ()
The kind of type that is used to identify a single interface.
If a Profile only supports a single interface, this is often the
() type.
If a Profile supports many interfaces, this could be an enum or integer type.fn send<T: Serialize>( &mut self, hdr: &Header, _data: &T, ) -> Result<(), InterfaceSendError>
fn send_raw( &mut self, hdr: &Header, _hdr_raw: &[u8], _data: &[u8], ) -> Result<(), InterfaceSendError>
fn send_err( &mut self, hdr: &Header, _err: ProtocolError, ) -> Result<(), InterfaceSendError>
fn interface_state( &mut self, _ident: Self::InterfaceIdent, ) -> Option<InterfaceState>
fn set_interface_state( &mut self, _ident: Self::InterfaceIdent, _state: InterfaceState, ) -> Result<(), SetStateError>
Auto Trait Implementations§
impl Freeze for Null
impl RefUnwindSafe for Null
impl Send for Null
impl Sync for Null
impl Unpin for Null
impl UnwindSafe for Null
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