pub struct DatagramQueue { /* private fields */ }Implementations§
Source§impl DatagramQueue
impl DatagramQueue
pub fn new() -> Self
pub fn add_datagram(&self, data: Vec<u8>) -> Result<(), WebTransportError>
pub fn receive_datagram(&self) -> Result<Vec<u8>, WebTransportError>
pub fn has_datagrams(&self) -> Result<bool, WebTransportError>
Trait Implementations§
Source§impl Default for DatagramQueue
impl Default for DatagramQueue
§impl<UT> LiftRef<UT> for DatagramQueue
impl<UT> LiftRef<UT> for DatagramQueue
type LiftType = Arc<DatagramQueue>
§impl<UT> LowerError<UT> for DatagramQueue
impl<UT> LowerError<UT> for DatagramQueue
§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
§impl<UT> LowerReturn<UT> for DatagramQueue
impl<UT> LowerReturn<UT> for DatagramQueue
§type ReturnType = <Arc<DatagramQueue> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<DatagramQueue> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
§impl<UT> TypeId<UT> for DatagramQueue
impl<UT> TypeId<UT> for DatagramQueue
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for DatagramQueue
impl RefUnwindSafe for DatagramQueue
impl Send for DatagramQueue
impl Sync for DatagramQueue
impl Unpin for DatagramQueue
impl UnsafeUnpin for DatagramQueue
impl UnwindSafe for DatagramQueue
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