Struct ccip_read_server::Server
source · pub struct Server { /* private fields */ }Expand description
CCIP-Read Server.
Implementations§
source§impl Server
impl Server
sourcepub fn add(
&mut self,
abi: Abi,
name: &str,
callback: Arc<dyn CCIPReadHandler + Sync + Send>
) -> Result<(), CCIPReadMiddlewareError>
pub fn add( &mut self, abi: Abi, name: &str, callback: Arc<dyn CCIPReadHandler + Sync + Send> ) -> Result<(), CCIPReadMiddlewareError>
Add callbacks for CCIP-Read server requests
Arguments
abithe parsed ABI of the contract to decode data forhandlersthe callbacks
sourcepub async fn start(&self) -> Result<(), CCIPReadMiddlewareError>
pub async fn start(&self) -> Result<(), CCIPReadMiddlewareError>
Starts a new CCIP-Read server.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl !UnwindSafe for Server
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