Skip to main content

Peer

Struct Peer 

Source
pub struct Peer { /* private fields */ }

Implementations§

Source§

impl Peer

Source

pub fn new( options: PeerOptions, guard: Rc<dyn NetGate>, io: Rc<dyn NetIo>, ) -> Result<Rc<Self>, Error>

Source

pub fn is_closed(&self) -> bool

Source

pub fn poke(&self)

Ops call this after changing the engine: the driver flushes what the change produced and JavaScript gets the resulting events.

Source

pub async fn next_events(&self) -> Option<Vec<JsEvent>>

The next batch of events, or None once the connection is closed and the queue is drained.

Source

pub fn create_offer(self: &Rc<Self>, ice_restart: bool) -> Result<String, Error>

Source

pub fn set_ice_servers( &self, specs: Vec<IceServerSpec>, relay_only: bool, tls: Option<Arc<ClientConfig>>, )

setConfiguration: the ICE servers and policy the next gathering (an ICE restart) uses.

Source

pub fn selected_pair(&self) -> Option<(SocketAddr, SocketAddr)>

Source

pub fn ice_selected_pair(&self) -> Option<SelectedPair>

The ICE agent’s selected candidate pair (W3C webrtc-pc 5.6 getSelectedCandidatePair()): the nominated pair as soon as ICE has one, on the controlled side too, before either side sent anything on it. None before that, or when the connection is closed.

Source

pub fn selected_is_tcp(&self) -> bool

Whether the selected pair is an ICE-TCP one.

Source

pub fn create_answer(&self) -> Result<String, Error>

The engine’s answer. It lists only the formats the remote offer has (rtci 0.3’s default, with_answer_offered_formats_only), so a peer can’t switch to a format its offer lacked (DENEXT.md item 565).

Source

pub fn set_local_description( self: &Rc<Self>, kind: &str, sdp: String, ) -> Result<(), Error>

Source

pub fn set_remote_description( self: &Rc<Self>, kind: &str, sdp: String, ) -> Result<u32, Error>

Checks every candidate the remote description carries and hands the engine a copy without the ones it can’t use (see [RemoteCandidate::Ignore]). A refused address fails the whole call.

Two-phase: an Err here is an argument error (a closed connection, an oversized description, an invalid type, a malformed candidate). The rest happens once the gate answered for every candidate (at once with a gate that decides, before this returns), and its outcome is the opdone event whose op is the id returned: no error when the description was applied, else a ErrorKind::NotCapable refusal or the engine’s error. Operations complete in the order they were made.

Source

pub fn add_ice_candidate( &self, candidate: String, sdp_mid: Option<String>, sdp_m_line_index: Option<u16>, username_fragment: Option<String>, ) -> Result<u32, Error>

Two-phase, as Peer::set_remote_description: an Err is an argument error (a closed connection, a malformed candidate); the outcome (a refused address, the engine’s error, or none) is the opdone event for the id returned.

Source

pub fn create_data_channel( self: &Rc<Self>, label: &str, init: RTCDataChannelInit, ) -> Result<(u32, Option<u16>), Error>

Returns the channel’s engine handle and its SCTP stream id when it already has one (a negotiated channel).

Source

pub fn send(&self, handle: u32, text: bool, data: &[u8]) -> Result<u32, Error>

Sends one message and returns the channel’s buffered amount after it.

Source

pub fn data_channel_id(&self, handle: u32) -> Option<u16>

RTCDataChannel.id: the SCTP stream id, once the engine has assigned one (when the DTLS role is negotiated, RFC 8832 section 6).

Source

pub fn set_buffered_amount_low_threshold(&self, handle: u32, threshold: u32)

Source

pub fn close_data_channel(&self, handle: u32)

Source

pub fn max_message_size(&self) -> Option<u32>

RTCSctpTransport.maxMessageSize, once SCTP is up.

Source

pub fn local_description(&self) -> Option<(String, String)>

localDescription: the pending local description, else the current one.

Source

pub fn remote_description(&self) -> Option<(String, String)>

remoteDescription: the pending remote description, else the current one.

Source

pub fn descriptions(&self) -> PeerDescriptions

The four description slots of the W3C API, each as (type, sdp): a current description stays in place while a new offer is pending, as currentLocalDescription / pendingLocalDescription (and the remote pair) have it.

Source

pub fn stats(&self, selector: Option<(u32, bool)>) -> Result<Vec<Value>, Error>

getStats(); selector is a transceiver key and whether its sender (else its receiver) is the selector.

Source

pub fn close(&self)

close(): stops the engine, the sockets and the driver. Idempotent.

Source§

impl Peer

Source

pub fn add_transceiver(&self, arg: TransceiverArg) -> Result<u32, Error>

addTransceiver() (and addTrack()’s new transceiver): its key.

Source

pub fn attach_track( &self, key: u32, track: TrackArg, streams: Vec<String>, ) -> Result<(), Error>

A track for a transceiver’s sender (addTrack() reusing one, replaceTrack()).

Source

pub fn transceivers(&self) -> Result<Vec<TransceiverInfo>, Error>

getTransceivers(): empty once the connection is closed.

Source

pub fn set_transceiver_direction( &self, key: u32, direction: &str, ) -> Result<(), Error>

transceiver.direction = ....

Source

pub fn stop_transceiver(&self, key: u32) -> Result<(), Error>

transceiver.stop().

Source

pub fn set_codec_preferences( &self, key: u32, codecs: Vec<CodecArg>, ) -> Result<(), Error>

transceiver.setCodecPreferences().

Source

pub fn set_header_extensions_to_negotiate( &self, key: u32, uris: Vec<String>, ) -> Result<(), Error>

transceiver.setHeaderExtensionsToNegotiate(), by URI.

Source

pub fn set_negotiation_options( &self, rtp_header_encryption_policy: &str, always_negotiate_data_channels: bool, ) -> Result<(), Error>

RTCConfiguration.rtpHeaderEncryptionPolicy and alwaysNegotiateDataChannels.

Source

pub fn set_sender_track_codec( &self, key: u32, codec: Option<CodecArg>, ) -> Result<(), Error>

The sender’s new track is an encoded track of codec (what its frames are in), or None: another track or none.

Source

pub fn set_sender_paused(&self, key: u32, paused: bool) -> Result<(), Error>

Whether a sender sends (a disabled or ended track pauses it).

Source

pub fn set_sender_streams( &self, key: u32, streams: Vec<String>, ) -> Result<(), Error>

sender.setStreams().

Source

pub fn sender_parameters(&self, key: u32) -> Result<Value, Error>

sender.getParameters().

Source

pub fn receiver_parameters(&self, key: u32) -> Result<Value, Error>

receiver.getParameters().

Source

pub fn receiver_sources( &self, key: u32, contributing: bool, ) -> Result<Vec<Value>, Error>

receiver.getSynchronizationSources() / getContributingSources().

Source

pub fn write_rtp(&self, key: u32, data: &[u8]) -> Result<bool, Error>

Writes an RTP packet (header included) for a sender.

Source

pub fn write_frame( &self, key: u32, data: &[u8], duration_ms: f64, ) -> Result<bool, Error>

Writes an encoded frame for a sender.

Source

pub fn write_fake(&self, key: u32, stereo: bool) -> Result<bool, Error>

Writes a fake capture device’s next frame for a sender.

Source

pub fn fake_frame( &self, key: u32, stereo: bool, ) -> Result<Option<FakeFrame>, Error>

A fake device’s next frame for a sender with an encoded transform (it is written later with Peer::write_frame_at).

Source

pub fn reserve_frame( &self, key: u32, duration_ms: f64, ) -> Result<Option<SenderFrameInfo>, Error>

Takes the RTP timestamp of a sender’s next frame, for an encoded transform’s frame; None before negotiation.

Source

pub fn write_frame_at( &self, key: u32, data: &[u8], duration_ms: f64, rtp_timestamp: u32, ) -> Result<bool, Error>

Writes an encoded transform’s frame at the RTP timestamp it reserved.

Source

pub fn set_receiver_transform(&self, key: u32, on: bool) -> Result<(), Error>

receiver.transform set or cleared: the receiver’s frames are delivered as encodedframe events while it is set.

Source

pub fn set_receiver_read_rtp(&self, key: u32, on: bool) -> Result<(), Error>

Whether a receiver’s RTP packets are delivered (rtp events).

Source

pub fn set_receiver_read_frames(&self, key: u32, on: bool) -> Result<(), Error>

Whether a receiver’s frames are put together and delivered (mediaframe events).

Source

pub fn set_receiver_muted(&self, key: u32, generation: u32) -> Result<(), Error>

A receiver’s track was muted (its remote side stopped sending): the next RTP packet unmutes it again (trackunmute).

Source

pub fn send_dtmf( &self, key: u32, event: u32, duration_ms: u32, ) -> Result<bool, Error>

RTCDTMFSender: one telephone event (event above 15 is 15).

Source

pub fn request_key_frame(&self, key: u32) -> Result<bool, Error>

Asks a receiver’s remote sender for a key frame (PLI).

Auto Trait Implementations§

§

impl !Freeze for Peer

§

impl !RefUnwindSafe for Peer

§

impl !Send for Peer

§

impl !Sync for Peer

§

impl !UnwindSafe for Peer

§

impl Forget for Peer

§

impl Move for Peer

§

impl Unpin for Peer
where *const u8 is !null: Unpin, &'static [u8]: Unpin, Arc<dyn SigningKey>: Unpin, Arc<dyn RTCCryptoProvider>: Unpin, Arc<dyn Fn(SocketAddr) -> bool + Sync + Send>: Unpin, Arc<dyn Fn(SocketAddr, AddressDirection, AddressPurpose) -> bool + Sync + Send>: Unpin, Arc<PacingGroup>: Unpin, Arc<Mutex<Bucket>>: Unpin, Arc<dyn Fn(isize) -> String + Sync + Send>: Unpin, Arc<RootCertStore>: Unpin, Arc<dyn ServerCertVerifier>: Unpin, Box<dyn Interceptor<Error = Error, Rout = TransportMessage<AttributedPacket>, Time = Instant, Eout = (), Wout = TransportMessage<AttributedPacket>>>: Unpin, *mut Shared: Unpin, *const u8: Unpin, Align8<*mut ()>: Unpin, &'static Vtable: Unpin, Box<dyn Packet>: Unpin, &'static str: Unpin, Box<dyn Cipher>: Unpin, Box<dyn ReplayDetector>: Unpin, Box<dyn Fn() -> Box<dyn ReplayDetector> + Sync + Send>: Unpin, Box<RestartUndo>: Unpin, Box<Candidate>: Unpin, Arc<HandshakeConfig>: Unpin, Box<dyn CipherSuite>: Unpin, Box<dyn ActiveKeyExchange>: Unpin, Box<dyn Flight>: Unpin, Box<Conn13>: Unpin, Arc<Atomic<bool>>: Unpin, Arc<DtlsSessionGroup>: Unpin, Arc<()>: Unpin, Box<dyn AssociationIdGenerator>: Unpin, Arc<EndpointConfig>: Unpin, Arc<ServerConfig>: Unpin, Arc<CookieSigner>: Unpin, Box<dyn Param>: Unpin, NonZero<u64>: Unpin, Arc<TransportConfig>: Unpin, *const LeafNode<((u128, u64), u16), SetValZST> is !null: Unpin, Box<(((u128, u64), u16), SetValZST)>: Unpin, *const LeafNode<(u64, u16), SetValZST> is !null: Unpin, Box<((u64, u16), SetValZST)>: Unpin, Box<dyn Chunk>: Unpin, *const LeafNode<usize, f64> is !null: Unpin, Box<(usize, f64)>: Unpin, *const LeafNode<u32, SetValZST> is !null: Unpin, Box<(u32, SetValZST)>: Unpin, *const LeafNode<usize, SetValZST> is !null: Unpin, Box<(usize, SetValZST)>: Unpin, *const LeafNode<usize, TransportStatsAccumulator> is !null: Unpin, Box<(usize, TransportStatsAccumulator)>: Unpin, Box<CcfbTally>: Unpin, Box<EcnValidation>: Unpin, Align4<u32>: Unpin, *const LeafNode<StreamId, Connection> is !null: Unpin, Box<(StreamId, Connection)>: Unpin, *const LeafNode<ListenerId, Listener> is !null: Unpin, Box<(ListenerId, Listener)>: Unpin, Arc<Login>: Unpin, Box<AllocateState>: Unpin, Arc<Credential>: Unpin, Box<Error>: Unpin, *const () is !null: Unpin, &'static SimpleMessage: Unpin, *const Custom is !null: Unpin, Box<dyn Error + Sync + Send>: Unpin, Arc<ClientConfig>: Unpin, Rc<Network>: Unpin, Rc<EcnUdpSocket>: Unpin, Arc<Chan<Vec<u8>, Semaphore>>: Unpin, Arc<Chan<Datagram, Semaphore>>: Unpin, Receiver<Datagram>: Unpin, Box<dyn Packetizer>: Unpin, Arc<PacerRefusals>: Unpin, Box<dyn Depacketizer + Send>: Unpin, *const RcInner<Peer> is !null: Unpin, Rc<dyn NetIo>: Unpin, Rc<GateCache>: Unpin, Arc<Chan<Vec<u8>, Semaphore>>: Unpin, Box<dyn Future<Output = Result<(), Error>>>: Unpin, Align8<usize>: Unpin, Align1<u8>: Unpin, *const Waiter is !null: Unpin, Arc<TreeNode>: Unpin,

§

impl UnsafeUnpin for Peer
where *const u8 is !null: UnsafeUnpin, PhantomData<RTCIceServer>: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, PhantomData<RTCCertificate>: UnsafeUnpin, PhantomData<RTCRtpCodecParameters>: UnsafeUnpin, PhantomData<(u8, RTCRtpCodec)>: UnsafeUnpin, PhantomData<MediaEngineHeaderExtension>: UnsafeUnpin, PhantomData<(u16, MediaEngineHeaderExtension)>: UnsafeUnpin, PhantomData<(u16, String)>: UnsafeUnpin, *const ArcInner<dyn RTCCryptoProvider> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn RTCCryptoProvider>>: UnsafeUnpin, PhantomData<NetworkType>: UnsafeUnpin, PhantomData<String>: UnsafeUnpin, *const ArcInner<dyn Fn(SocketAddr) -> bool + Sync + Send> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn Fn(SocketAddr) -> bool + Sync + Send>>: UnsafeUnpin, *const ArcInner<dyn Fn(SocketAddr, AddressDirection, AddressPurpose) -> bool + Sync + Send> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn Fn(SocketAddr, AddressDirection, AddressPurpose) -> bool + Sync + Send>>: UnsafeUnpin, *const ArcInner<PacingGroup> is !null: UnsafeUnpin, PhantomData<ArcInner<PacingGroup>>: UnsafeUnpin, *const ArcInner<Mutex<Bucket>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Bucket>>>: UnsafeUnpin, PhantomData<SrtpProtectionProfile>: UnsafeUnpin, PhantomData<CipherSuiteId>: UnsafeUnpin, *const ArcInner<dyn Fn(isize) -> String + Sync + Send> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn Fn(isize) -> String + Sync + Send>>: UnsafeUnpin, PhantomData<(String, RTCVideoResolutionRange)>: UnsafeUnpin, *const ArcInner<RootCertStore> is !null: UnsafeUnpin, PhantomData<ArcInner<RootCertStore>>: UnsafeUnpin, *const ArcInner<dyn ServerCertVerifier> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ServerCertVerifier>>: UnsafeUnpin, *const dyn Interceptor<Error = Error, Rout = TransportMessage<AttributedPacket>, Time = Instant, Eout = (), Wout = TransportMessage<AttributedPacket>> is !null: UnsafeUnpin, PhantomData<dyn Interceptor<Error = Error, Rout = TransportMessage<AttributedPacket>, Time = Instant, Eout = (), Wout = TransportMessage<AttributedPacket>>>: UnsafeUnpin, PhantomData<Bandwidth>: UnsafeUnpin, PhantomData<TimeDescription>: UnsafeUnpin, PhantomData<Attribute>: UnsafeUnpin, PhantomData<MediaDescription>: UnsafeUnpin, PhantomData<TaggedRTCMessageInternal>: UnsafeUnpin, PhantomData<TaggedRTCEventInternal>: UnsafeUnpin, PhantomData<TransportBundle>: UnsafeUnpin, PhantomData<(String, TransportId)>: UnsafeUnpin, PhantomData<((SocketAddr, SocketAddr), Option<TransportId>)>: UnsafeUnpin, PhantomData<(u64, Option<TransportId>)>: UnsafeUnpin, PhantomData<(u32, AssociationHandle)>: UnsafeUnpin, PhantomData<((SocketAddr, u16, u16), AssociationHandle)>: UnsafeUnpin, PhantomData<Entry<AssociationMeta>>: UnsafeUnpin, *const dyn AssociationIdGenerator is !null: UnsafeUnpin, PhantomData<dyn AssociationIdGenerator>: UnsafeUnpin, *const ArcInner<EndpointConfig> is !null: UnsafeUnpin, PhantomData<ArcInner<EndpointConfig>>: UnsafeUnpin, *const ArcInner<ServerConfig> is !null: UnsafeUnpin, PhantomData<ArcInner<ServerConfig>>: UnsafeUnpin, PhantomData<TransportMessage<Payload>>: UnsafeUnpin, PhantomData<Arc<CookieSigner>>: UnsafeUnpin, PhantomData<(AssociationHandle, Association)>: UnsafeUnpin, PhantomData<((AssociationHandle, u16), ())>: UnsafeUnpin, PhantomData<((AssociationHandle, u16), (ReliabilityType, u32))>: UnsafeUnpin, PhantomData<(AssociationHandle, ())>: UnsafeUnpin, PhantomData<(AssociationHandle, TransportContext)>: UnsafeUnpin, PhantomData<((AssociationHandle, u16), PartialMessage)>: UnsafeUnpin, PhantomData<(AssociationHandle, usize)>: UnsafeUnpin, PhantomData<(u32, usize)>: UnsafeUnpin, PhantomData<((String, String), Instant)>: UnsafeUnpin, PhantomData<(u32, String)>: UnsafeUnpin, PhantomData<(u32, ())>: UnsafeUnpin, PhantomData<(u32, (String, String))>: UnsafeUnpin, *const LeafNode<usize, f64> is !null: UnsafeUnpin, PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin, PhantomData<Box<(usize, f64)>>: UnsafeUnpin, *const LeafNode<u32, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(u32, SetValZST)>>: UnsafeUnpin, *const LeafNode<usize, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(usize, SetValZST)>>: UnsafeUnpin, PhantomData<(usize, FecSessionTransport)>: UnsafeUnpin, PhantomData<(usize, StreamInfo)>: UnsafeUnpin, PhantomData<(usize, ())>: UnsafeUnpin, PhantomData<(u32, u16)>: UnsafeUnpin, PhantomData<(u32, DeliveredWindow)>: UnsafeUnpin, PhantomData<u32>: UnsafeUnpin, PhantomData<TaggedRTCMessage>: UnsafeUnpin, PhantomData<TransportMessage<BytesMut>>: UnsafeUnpin, PhantomData<RTCPeerConnectionEvent>: UnsafeUnpin, *const LeafNode<usize, TransportStatsAccumulator> is !null: UnsafeUnpin, PhantomData<Box<(usize, TransportStatsAccumulator)>>: UnsafeUnpin, PhantomData<(String, usize)>: UnsafeUnpin, PhantomData<(String, IceCandidatePairAccumulator)>: UnsafeUnpin, PhantomData<(String, IceCandidateAccumulator)>: UnsafeUnpin, PhantomData<(String, CertificateStatsAccumulator)>: UnsafeUnpin, PhantomData<(String, CodecStatsAccumulator)>: UnsafeUnpin, PhantomData<(usize, DataChannelStatsAccumulator)>: UnsafeUnpin, PhantomData<usize>: UnsafeUnpin, PhantomData<(u32, InboundRtpStreamAccumulator)>: UnsafeUnpin, PhantomData<(u32, OutboundRtpStreamAccumulator)>: UnsafeUnpin, PhantomData<(String, MediaSourceStatsAccumulator)>: UnsafeUnpin, PhantomData<(String, AudioPlayoutStatsAccumulator)>: UnsafeUnpin, PhantomData<(u32, u32)>: UnsafeUnpin, PhantomData<(usize, u64)>: UnsafeUnpin, Align4<u32>: UnsafeUnpin, PhantomData<SystemInstant>: UnsafeUnpin, PhantomData<(usize, RTCDataChannelInternal)>: UnsafeUnpin, PhantomData<(u16, usize)>: UnsafeUnpin, PhantomData<(usize, RTCError)>: UnsafeUnpin, PhantomData<RTCClosedDataChannel>: UnsafeUnpin, PhantomData<RTCRtpTransceiverInternal>: UnsafeUnpin, PhantomData<Ipv6Addr>: UnsafeUnpin, PhantomData<RTCDtlsFingerprint>: UnsafeUnpin, PhantomData<(TransportId, Option<RTCIceGatheringState>, bool)>: UnsafeUnpin, PhantomData<(String, ())>: UnsafeUnpin, PhantomData<(u32, (Instant, u64))>: UnsafeUnpin, *const LeafNode<StreamId, Connection> is !null: UnsafeUnpin, PhantomData<Box<(StreamId, Connection)>>: UnsafeUnpin, *const LeafNode<ListenerId, Listener> is !null: UnsafeUnpin, PhantomData<Box<(ListenerId, Listener)>>: UnsafeUnpin, PhantomData<StreamCommand>: UnsafeUnpin, PhantomData<StreamNotice>: UnsafeUnpin, PhantomData<TcpGather>: UnsafeUnpin, PhantomData<(IpAddr, ())>: UnsafeUnpin, PhantomData<(SocketAddr, ())>: UnsafeUnpin, PhantomData<(StreamId, ())>: UnsafeUnpin, PhantomData<(StreamId, TransportId)>: UnsafeUnpin, PhantomData<((TransportId, SocketAddr, SocketAddr), ())>: UnsafeUnpin, PhantomData<(TransportId, ())>: UnsafeUnpin, PhantomData<Url>: UnsafeUnpin, PhantomData<(TransportId, String, Vec<Url>)>: UnsafeUnpin, PhantomData<(TransportId, SocketAddr)>: UnsafeUnpin, PhantomData<TurnLink>: UnsafeUnpin, *const ArcInner<ClientConfig> is !null: UnsafeUnpin, PhantomData<ArcInner<ClientConfig>>: UnsafeUnpin, PhantomData<(TransportId, IpAddr)>: UnsafeUnpin, PhantomData<(SocketAddr, Instant)>: UnsafeUnpin, PhantomData<UdpAttempt>: UnsafeUnpin, PhantomData<(TransportId, Option<String>)>: UnsafeUnpin, PhantomData<UdpRelease>: UnsafeUnpin, PhantomData<(SocketAddr, SocketAddr, Instant)>: UnsafeUnpin, PhantomData<Probe>: UnsafeUnpin, PhantomData<SocketAddr>: UnsafeUnpin, PhantomData<(TransportId, SocketAddr, Base, String)>: UnsafeUnpin, PhantomData<IceServerSpec>: UnsafeUnpin, *const RcInner<Network> is !null: UnsafeUnpin, PhantomData<RcInner<Network>>: UnsafeUnpin, PhantomData<UdpEndpoint>: UnsafeUnpin, PhantomData<ServerClient>: UnsafeUnpin, PhantomData<JsEvent>: UnsafeUnpin, PhantomData<(IpAddr, IpAddr)>: UnsafeUnpin, *const ArcInner<Chan<Datagram, Semaphore>> is !null: UnsafeUnpin, PhantomData<ArcInner<Chan<Datagram, Semaphore>>>: UnsafeUnpin, PhantomData<(u32, RtpCodecKind)>: UnsafeUnpin, PhantomData<(String, u32)>: UnsafeUnpin, PhantomData<(u32, SenderPacketizer)>: UnsafeUnpin, PhantomData<(u32, CodecArg)>: UnsafeUnpin, PhantomData<(u32, (u16, u32))>: UnsafeUnpin, PhantomData<(u32, Vec<Source>)>: UnsafeUnpin, PhantomData<(u32, Cursor)>: UnsafeUnpin, PhantomData<(u32, SentVideo)>: UnsafeUnpin, PhantomData<(u32, ReceivedVideo)>: UnsafeUnpin, *const ArcInner<PacerRefusals> is !null: UnsafeUnpin, PhantomData<ArcInner<PacerRefusals>>: UnsafeUnpin, PhantomData<(u32, Instant)>: UnsafeUnpin, PhantomData<(u32, Option<FrameAssembler>)>: UnsafeUnpin, PhantomData<(u32, Option<(u8, FrameAssembler)>)>: UnsafeUnpin, PhantomData<(u32, (u8, String))>: UnsafeUnpin, PhantomData<(u32, (u32, u32))>: UnsafeUnpin, PhantomData<(u32, u64)>: UnsafeUnpin, &'static str: UnsafeUnpin, *const RcInner<Peer> is !null: UnsafeUnpin, *const RcInner<dyn NetIo> is !null: UnsafeUnpin, PhantomData<RcInner<dyn NetIo>>: UnsafeUnpin, *const RcInner<GateCache> is !null: UnsafeUnpin, PhantomData<RcInner<GateCache>>: UnsafeUnpin, PhantomData<(SocketAddr, TcpLink)>: UnsafeUnpin, PhantomData<(SocketAddr, Vec<Vec<u8>>)>: UnsafeUnpin, *const RcInner<EcnUdpSocket> is !null: UnsafeUnpin, PhantomData<RcInner<EcnUdpSocket>>: UnsafeUnpin, PhantomData<(String, String)>: UnsafeUnpin, PhantomData<(u32, Pin<Box<dyn Future<Output = Result<(), Error>>>>)>: UnsafeUnpin, Align8<usize>: UnsafeUnpin, Align1<u8>: UnsafeUnpin, *const Waiter is !null: UnsafeUnpin, *const ArcInner<TreeNode> is !null: UnsafeUnpin, PhantomData<ArcInner<TreeNode>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
Source§

impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

Source§

unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool

Returns whether the given value has been niched. Read more
Source§

fn resolve_niched(out: Place<NichedOption<T, N1>>)

Writes data to out indicating that a T is niched.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.