pub struct InetSocketAddress(/* private fields */);Expand description
java.net.InetSocketAddress
Implementations§
Source§impl InetSocketAddress
impl InetSocketAddress
Sourcepub fn as_socket_address(&self, e: &mut Env<'_>) -> SocketAddress
pub fn as_socket_address(&self, e: &mut Env<'_>) -> SocketAddress
Downcast self to SocketAddress
Sourcepub fn from_socket_address(e: &mut Env<'_>, addr: SocketAddress) -> Self
pub fn from_socket_address(e: &mut Env<'_>, addr: SocketAddress) -> Self
Upcast SocketAddress to self
Sourcepub fn new_wildcard_address(e: &mut Env<'_>, port: i32) -> Self
pub fn new_wildcard_address(e: &mut Env<'_>, port: i32) -> Self
Create a new socket address, using the local wildcard address as the IP address
<https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/net/InetSocketAddress.html#
Sourcepub fn new_resolved(e: &mut Env<'_>, host: impl ToString, port: i32) -> Self
pub fn new_resolved(e: &mut Env<'_>, host: impl ToString, port: i32) -> Self
Create a new socket address, resolving the hostname to an IP address (unless the string is an IP literal)
Sourcepub fn new(e: &mut Env<'_>, addr: InetAddress, port: i32) -> Self
pub fn new(e: &mut Env<'_>, addr: InetAddress, port: i32) -> Self
Create a new socket address from a known IP and port
<https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/net/InetSocketAddress.html#
Sourcepub fn address(&self, e: &mut Env<'_>) -> InetAddress
pub fn address(&self, e: &mut Env<'_>) -> InetAddress
Get the IP address
Sourcepub fn to_std(&self, e: &mut Env<'_>) -> SocketAddr
pub fn to_std(&self, e: &mut Env<'_>) -> SocketAddr
Convert InetSocketAddress to std::net::SocketAddr
Sourcepub fn to_no_std(&self, e: &mut Env<'_>) -> SocketAddr
pub fn to_no_std(&self, e: &mut Env<'_>) -> SocketAddr
Convert InetSocketAddress to no_std_net::SocketAddr
Sourcepub fn from_std(e: &mut Env<'_>, addr: SocketAddr) -> Self
pub fn from_std(e: &mut Env<'_>, addr: SocketAddr) -> Self
Convert std::net::SocketAddr to InetSocketAddress
Sourcepub fn from_no_std(e: &mut Env<'_>, addr: SocketAddr) -> Self
pub fn from_no_std(e: &mut Env<'_>, addr: SocketAddr) -> Self
Convert std::net::SocketAddr to InetSocketAddress
Trait Implementations§
Source§impl Class for InetSocketAddress
impl Class for InetSocketAddress
Source§impl Object for InetSocketAddress
impl Object for InetSocketAddress
Source§fn upcast<'a, 'e>(_: &'a mut Env<'e>, jobj: Object) -> Self
fn upcast<'a, 'e>(_: &'a mut Env<'e>, jobj: Object) -> Self
SelfSource§fn downcast_ref<'a, 'e>(&'a self, e: &'a mut Env<'e>) -> Object
fn downcast_ref<'a, 'e>(&'a self, e: &'a mut Env<'e>) -> Object
&selfSource§fn upcast_value_ref<'e>(e: &mut Env<'e>, jv: JValue<'e, '_>) -> Selfwhere
Self: Sized,
fn upcast_value_ref<'e>(e: &mut Env<'e>, jv: JValue<'e, '_>) -> Selfwhere
Self: Sized,
JValue as SelfSource§fn upcast_value<'e>(e: &mut Env<'e>, jv: JValueOwned<'e>) -> Selfwhere
Self: Sized,
fn upcast_value<'e>(e: &mut Env<'e>, jv: JValueOwned<'e>) -> Selfwhere
Self: Sized,
JValueOwned as SelfSource§fn downcast_value<'e>(self, e: &mut Env<'e>) -> JValueOwned<'e>where
Self: Sized,
fn downcast_value<'e>(self, e: &mut Env<'e>) -> JValueOwned<'e>where
Self: Sized,
JValueOwned from selfSource§fn yield_to_java(&self, e: &mut Env<'_>) -> jobject
fn yield_to_java(&self, e: &mut Env<'_>) -> jobject
java::lang::Object
to the JVM, for example when returning a jobject from a
native function.Auto Trait Implementations§
impl Freeze for InetSocketAddress
impl RefUnwindSafe for InetSocketAddress
impl Send for InetSocketAddress
impl Sync for InetSocketAddress
impl Unpin for InetSocketAddress
impl UnsafeUnpin for InetSocketAddress
impl UnwindSafe for InetSocketAddress
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
Source§impl<F, A, TF, T> Sequence<F, A, TF> for T
impl<F, A, TF, T> Sequence<F, A, TF> for T
Source§fn sequence<Ap>(self) -> <Ap as HKT1>::T<<F as HKT1>::T<A>>where
Self: Sized + Traversable<F, <Ap as HKT1>::T<A>, A, TF> + Foldable<F, <Ap as HKT1>::T<A>>,
Ap: HKT1,
<Ap as HKT1>::T<A>: Applicative<Ap, A> + ApplyOnce<Ap, A>,
<Ap as HKT1>::T<TF>: Applicative<Ap, TF> + ApplyOnce<Ap, TF>,
<Ap as HKT1>::T<<F as HKT1>::T<A>>: Applicative<Ap, <F as HKT1>::T<A>> + ApplyOnce<Ap, <F as HKT1>::T<A>>,
F: HKT1<T<<Ap as HKT1>::T<A>> = Self>,
fn sequence<Ap>(self) -> <Ap as HKT1>::T<<F as HKT1>::T<A>>where
Self: Sized + Traversable<F, <Ap as HKT1>::T<A>, A, TF> + Foldable<F, <Ap as HKT1>::T<A>>,
Ap: HKT1,
<Ap as HKT1>::T<A>: Applicative<Ap, A> + ApplyOnce<Ap, A>,
<Ap as HKT1>::T<TF>: Applicative<Ap, TF> + ApplyOnce<Ap, TF>,
<Ap as HKT1>::T<<F as HKT1>::T<A>>: Applicative<Ap, <F as HKT1>::T<A>> + ApplyOnce<Ap, <F as HKT1>::T<A>>,
F: HKT1<T<<Ap as HKT1>::T<A>> = Self>,
Sequence