pub struct WebTransportClient { /* private fields */ }Implementations§
Source§impl WebTransportClient
impl WebTransportClient
pub fn new() -> Self
pub fn connect(&self, url: String) -> Result<(), WebTransportError>
pub fn send_datagram(&self, data: Vec<u8>) -> Result<(), WebTransportError>
pub fn subscribe_to_datagrams( &self, queue: Arc<DatagramQueue>, ) -> Result<(), WebTransportError>
pub fn stop_datagram_listener(&self) -> Result<(), WebTransportError>
Trait Implementations§
Source§impl Default for WebTransportClient
impl Default for WebTransportClient
Source§impl Drop for WebTransportClient
impl Drop for WebTransportClient
§impl<UT> LiftRef<UT> for WebTransportClient
impl<UT> LiftRef<UT> for WebTransportClient
type LiftType = Arc<WebTransportClient>
§impl<UT> LowerError<UT> for WebTransportClient
impl<UT> LowerError<UT> for WebTransportClient
§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 WebTransportClient
impl<UT> LowerReturn<UT> for WebTransportClient
§type ReturnType = <Arc<WebTransportClient> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<WebTransportClient> 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 WebTransportClient
impl<UT> TypeId<UT> for WebTransportClient
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for WebTransportClient
impl RefUnwindSafe for WebTransportClient
impl Send for WebTransportClient
impl Sync for WebTransportClient
impl Unpin for WebTransportClient
impl UnsafeUnpin for WebTransportClient
impl UnwindSafe for WebTransportClient
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