pub struct PortBuilder<T> { /* private fields */ }Expand description
Port builder for ergonomic port creation
Implementations§
Source§impl<T> PortBuilder<T>
impl<T> PortBuilder<T>
Sourcepub fn build(self, global: &GlobalContext) -> *mut Context
pub fn build(self, global: &GlobalContext) -> *mut Context
Build the port context with the data
Sourcepub fn build_with_user_data(
self,
global: &GlobalContext,
user_data: u64,
) -> *mut Context
pub fn build_with_user_data( self, global: &GlobalContext, user_data: u64, ) -> *mut Context
Build the port context and also set user data
Sourcepub fn build_with_user_term(
self,
global: &GlobalContext,
user_term: Term,
) -> *mut Context
pub fn build_with_user_term( self, global: &GlobalContext, user_term: Term, ) -> *mut Context
Build the port context and also set user term
Auto Trait Implementations§
impl<T> Freeze for PortBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for PortBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for PortBuilder<T>where
T: Send,
impl<T> Sync for PortBuilder<T>where
T: Sync,
impl<T> Unpin for PortBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for PortBuilder<T>where
T: UnwindSafe,
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
Mutably borrows from an owned value. Read more