Struct ice_rs::proxy::Proxy [−][src]
Fields
write: WriteHalf<Box<dyn Transport + Send + Sync + Unpin>>
request_id: i32
ident: String
host: String
port: i32
context: 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]
stream: Box<dyn Transport + Send + Sync + Unpin>,
ident: &str,
host: &str,
port: i32,
context: Option<HashMap<String, String>>
) -> Proxy
pub async fn ice_context(
&mut self,
context: HashMap<String, String>
) -> Result<Proxy, Box<dyn Error + Send + Sync>>
[src]
&mut self,
context: HashMap<String, String>
) -> Result<Proxy, Box<dyn Error + Send + Sync>>
pub async fn dispatch<T: 'static + Debug + Display + FromBytes + Send + Sync>(
&mut self,
op: &str,
mode: u8,
params: &Encapsulation,
context: Option<HashMap<String, String>>
) -> Result<ReplyData, Box<dyn Error + Send + Sync>>
[src]
&mut self,
op: &str,
mode: u8,
params: &Encapsulation,
context: Option<HashMap<String, String>>
) -> Result<ReplyData, Box<dyn Error + Send + Sync>>
pub fn create_request(
&mut self,
identity_name: &str,
operation: &str,
mode: u8,
params: &Encapsulation,
context: Option<HashMap<String, String>>
) -> RequestData
[src]
&mut self,
identity_name: &str,
operation: &str,
mode: u8,
params: &Encapsulation,
context: Option<HashMap<String, String>>
) -> RequestData
pub async fn await_validate_connection_message(
&mut self
) -> Result<(), Box<dyn Error + Sync + Send>>
[src]
&mut self
) -> Result<(), Box<dyn Error + Sync + Send>>
pub async fn await_reply_message(
&mut self,
request_id: i32
) -> Result<MessageType, Box<dyn Error + Sync + Send>>
[src]
&mut self,
request_id: i32
) -> Result<MessageType, Box<dyn Error + Sync + Send>>
pub async fn make_request<T: 'static + Debug + Display + FromBytes + Send + Sync>(
&mut self,
request: &RequestData
) -> Result<ReplyData, Box<dyn Error + Sync + Send>>
[src]
&mut self,
request: &RequestData
) -> Result<ReplyData, Box<dyn Error + Sync + Send>>
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,