pub struct SocketState<D, BT: DeviceSocketTypes> {
pub external_state: BT::SocketState,
/* private fields */
}
Expand description
State held by a device socket.
Fields§
§external_state: BT::SocketState
State provided by bindings that is held in core.
Trait Implementations§
Source§impl<D: Debug, BT: Debug + DeviceSocketTypes> Debug for SocketState<D, BT>where
BT::SocketState: Debug,
impl<D: Debug, BT: Debug + DeviceSocketTypes> Debug for SocketState<D, BT>where
BT::SocketState: Debug,
Auto Trait Implementations§
impl<D, BT> !Freeze for SocketState<D, BT>
impl<D, BT> RefUnwindSafe for SocketState<D, BT>
impl<D, BT> Send for SocketState<D, BT>where
D: Send,
impl<D, BT> Sync for SocketState<D, BT>where
D: Send,
impl<D, BT> Unpin for SocketState<D, BT>
impl<D, BT> UnwindSafe for SocketState<D, BT>
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
Source§impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
Source§impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
Source§fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Send a frame. Read more
Source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
Source§fn handle_timer(
&mut self,
bindings_ctx: &mut BC,
dispatch: Id,
timer: <BC as TimerBindingsTypes>::UniqueTimerId,
)
fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )
Handle a timer firing. Read more