pub struct DirectEdge<I: Interface> { /* private fields */ }Implementations§
Source§impl<I: Interface> DirectEdge<I>
impl<I: Interface> DirectEdge<I>
pub const fn new_target(sink: I::Sink) -> Self
pub const fn new_controller(sink: I::Sink, state: InterfaceState) -> Self
Trait Implementations§
Source§impl<I: Interface> Profile for DirectEdge<I>
impl<I: Interface> Profile for DirectEdge<I>
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_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: ()) -> Option<InterfaceState>
fn set_interface_state( &mut self, _ident: (), state: InterfaceState, ) -> Result<(), SetStateError>
Auto Trait Implementations§
impl<I> Freeze for DirectEdge<I>
impl<I> RefUnwindSafe for DirectEdge<I>
impl<I> Send for DirectEdge<I>
impl<I> Sync for DirectEdge<I>
impl<I> Unpin for DirectEdge<I>
impl<I> UnwindSafe for DirectEdge<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