pub struct MoqRequest { /* private fields */ }Expand description
An incoming MoQ session that can be accepted or rejected.
Implementations§
Source§impl MoqRequest
impl MoqRequest
Sourcepub fn set_publish(&self, origin: Option<Arc<MoqOriginProducer>>)
pub fn set_publish(&self, origin: Option<Arc<MoqOriginProducer>>)
Override the publish origin for this session. Falls back to the server’s configured publish origin if unset.
Sourcepub fn set_consume(&self, origin: Option<Arc<MoqOriginProducer>>)
pub fn set_consume(&self, origin: Option<Arc<MoqOriginProducer>>)
Override the consume origin for this session. Falls back to the server’s configured consume origin if unset.
Sourcepub async fn ok(&self) -> Result<Arc<MoqSession>, MoqError>
pub async fn ok(&self) -> Result<Arc<MoqSession>, MoqError>
Complete the MoQ handshake and return the established session.
Returns AlreadyResponded if ok() or close() has already been called.
Trait Implementations§
Source§impl<UT> LiftRef<UT> for MoqRequest
impl<UT> LiftRef<UT> for MoqRequest
type LiftType = Arc<MoqRequest>
Source§impl<UT> LowerError<UT> for MoqRequest
impl<UT> LowerError<UT> for MoqRequest
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for MoqRequest
impl<UT> LowerReturn<UT> for MoqRequest
Source§type ReturnType = <Arc<MoqRequest> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<MoqRequest> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
Source§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
Source§impl<UT> TypeId<UT> for MoqRequest
impl<UT> TypeId<UT> for MoqRequest
Auto Trait Implementations§
impl !RefUnwindSafe for MoqRequest
impl !UnwindSafe for MoqRequest
impl Freeze for MoqRequest
impl Send for MoqRequest
impl Sync for MoqRequest
impl Unpin for MoqRequest
impl UnsafeUnpin for MoqRequest
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