Struct ice_rs::proxy::Proxy[][src]

pub struct Proxy {
    pub write: WriteHalf<Box<dyn Transport + Send + Sync + Unpin>>,
    pub request_id: i32,
    pub ident: String,
    pub host: String,
    pub port: i32,
    pub context: Option<HashMap<String, String>>,
    pub handle: Option<JoinHandle<Result<(), Box<dyn Error + Sync + Send>>>>,
    pub message_queue: Arc<Mutex<Vec<MessageType>>>,
    pub stream_type: String,
}

Fields

write: WriteHalf<Box<dyn Transport + Send + Sync + Unpin>>request_id: i32ident: Stringhost: Stringport: i32context: Option<HashMap<String, String>>handle: Option<JoinHandle<Result<(), Box<dyn Error + Sync + Send>>>>message_queue: Arc<Mutex<Vec<MessageType>>>stream_type: String

Implementations

impl Proxy[src]

pub fn new(
    stream: Box<dyn Transport + Send + Sync + Unpin>,
    ident: &str,
    host: &str,
    port: i32,
    context: Option<HashMap<String, String>>
) -> Proxy
[src]

pub async fn ice_context(
    &mut self,
    context: HashMap<String, String>
) -> Result<Proxy, Box<dyn Error + Send + Sync>>
[src]

pub fn create_request(
    &mut self,
    identity_name: &str,
    operation: &str,
    mode: u8,
    params: &Encapsulation,
    context: Option<HashMap<String, String>>
) -> RequestData
[src]

pub async fn await_validate_connection_message(
    &mut self
) -> Result<(), Box<dyn Error + Sync + Send>>
[src]

pub async fn await_reply_message(
    &mut self,
    request_id: i32
) -> Result<MessageType, Box<dyn Error + Sync + Send>>
[src]

pub async fn make_request<T: 'static + Debug + Display + FromBytes + Send + Sync>(
    &mut self,
    request: &RequestData
) -> Result<ReplyData, Box<dyn Error + Sync + Send>>
[src]

Trait Implementations

impl Drop for Proxy[src]

Auto Trait Implementations

impl !RefUnwindSafe for Proxy

impl Send for Proxy

impl Sync for Proxy

impl Unpin for Proxy

impl !UnwindSafe for Proxy

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.