Skip to main content

RfbSession

Struct RfbSession 

Source
pub struct RfbSession {
    pub info: ServerInfo,
    pub writer: RfbWriter,
    /* private fields */
}
Expand description

A negotiated RFB reader and independent input writer.

Fields§

§info: ServerInfo

Initial server metadata.

§writer: RfbWriter

Client-to-server update and input messages.

Implementations§

Source§

impl RfbSession

Source

pub fn connect(path: &Path) -> Result<Self>

Connect to a local QEMU RFB socket using security type None.

Source

pub fn into_events(self) -> Result<(ServerInfo, RfbWriter, Receiver<RfbEvent>)>

Start the blocking protocol reader on a dedicated thread.

Auto Trait Implementations§

§

impl Forget for RfbSession

§

impl Freeze for RfbSession
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, I32NotAllOnes: Freeze, *const ArcInner<RfbReaderControl> is !null: Freeze, PhantomData<ArcInner<RfbReaderControl>>: Freeze,

§

impl Move for RfbSession

§

impl RefUnwindSafe for RfbSession

§

impl Send for RfbSession
where RawVecInner: Send, I32NotAllOnes: Send, Arc<RfbReaderControl>: Send,

§

impl Sync for RfbSession
where RawVecInner: Sync, I32NotAllOnes: Sync, Arc<RfbReaderControl>: Sync,

§

impl Unpin for RfbSession
where *const u8 is !null: Unpin, I32NotAllOnes: Unpin, Arc<RfbReaderControl>: Unpin,

§

impl UnsafeUnpin for RfbSession
where *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, I32NotAllOnes: UnsafeUnpin, *const ArcInner<RfbReaderControl> is !null: UnsafeUnpin, PhantomData<ArcInner<RfbReaderControl>>: UnsafeUnpin,

§

impl UnwindSafe for RfbSession
where RawVecInner: UnwindSafe, I32NotAllOnes: UnwindSafe, Arc<RfbReaderControl>: UnwindSafe,

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> 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> 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.