pub struct DirectRouter<I: Interface> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<I: Interface> Default for DirectRouter<I>
impl<I: Interface> Default for DirectRouter<I>
Source§impl<I: Interface> Profile for DirectRouter<I>
impl<I: Interface> Profile for DirectRouter<I>
Source§type InterfaceIdent = u64
type InterfaceIdent = u64
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_err( &mut self, hdr: &Header, err: ProtocolError, ) -> Result<(), InterfaceSendError>
fn send_raw( &mut self, hdr: &Header, hdr_raw: &[u8], data: &[u8], ) -> 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<I> Freeze for DirectRouter<I>
impl<I> RefUnwindSafe for DirectRouter<I>
impl<I> Send for DirectRouter<I>
impl<I> Sync for DirectRouter<I>
impl<I> Unpin for DirectRouter<I>
impl<I> UnwindSafe for DirectRouter<I>
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